import requests

type = ['all',"group","top","child"]

for i in type:
    url = f"http://118.121.200.162:8086/api/v5/department"
    res = requests.get(url)
    assert res.status_code == 200
    print(res.text)